package com.og.vas.common.result;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
@AllArgsConstructor
public enum ResponseEnum {


    SUCCESS(0,"成功"),
    ERROR(-1,"服务器内部错误"),


    // -1XX服务器错误

    ABNORMAL_REQUEST(-100,"请求错误"),
    BAD_SQL_GRAMMAR_ERROR(-101, "sql语法错误"),
    SERVLET_ERROR(-102, "servlet请求异常"),
    UPLOAD_ERROR(-103, "文件上传错误"),
    //-2xx 参数校验
    ABNORMAL_PARA(-200,"参数异常"),
    LOGIN_AUTH_ERROR(-201, "未登录"),
    MOBILE_EXIST_ERROR(-202, "手机号已被注册"),
    ID_EXIST_ERROR(-202, "身份证已被注册"),
    LOGIN_MOBILE_ERROR(-203, "用户不存在"),
    LOGIN_PASSWORD_ERROR(-204, "密码错误"),
    LOGIN_LOKED_ERROR(-205, "用户被锁定"),
    LOGIN_ERROR(-205, "用户已存在"),
    PREMISSION_SET_ERROR(-206,"权限设置错误"),
    SAME_PASSWORD(-207,"新旧密码相同"),
    ABNORMAL_ACCOUNT(-208, "账户异常");




    //响应状态码
    private Integer code;
    //响应信息
    private  String message;
    }
